#
# spectrum-lib/src/CMakeLists.txt
#

# === Set the project name and specify the required CMAKE version.
project(spectrum C CXX)
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

# === Append the project cmake directory to the module path.
list(INSERT CMAKE_MODULE_PATH 0 ${spectrum_SOURCE_DIR}/cmake)

# === Set dependencies.
include(dependencies)

# === Set compiler options.
include(compilerOptions) 

# === Enable testing for the project.
enable_testing()

# === Add top level source directory to include path.
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR}/widgets)
include_directories(${QT_INCLUDE_DIR})
include_directories(${QT_QTCORE_INCLUDE_DIR})
include_directories(${QT_QTGUI_INCLUDE_DIR})
include_directories(${Qwt6_INCLUDE_DIR})

# === Build modules.
add_subdirectory(widgets)
#add_subdirectory(core)
#add_subdirectory(clean)
#add_subdirectory(fold)
#add_subdirectory(lomb)
